package com.denso.store.dash;

import com.denso.store.admin.scheduler.SchedulerService;
import com.denso.store.common.model.Scheduler;
import com.jfinal.core.Controller;

import java.util.List;

/**
 * Created by lijian on 2017/12/13.
 */
public class DashController extends Controller {

    private static SchedulerService service = new SchedulerService();

    public void index() {
        List<Scheduler> schedulerList = service.findActive();
        setAttr("schedulerList", schedulerList);
        render("index.html");
    }
}
